package com.fas.system.domain;

import com.fas.common.core.domain.BaseEntity;
import com.fas.system.domain.vo.LongJsonDeserializer;
import com.fas.system.domain.vo.LongJsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 巡检路线对象 fas_inspection_line
 */
@ApiModel(value = "巡检路线对象")
@Data
public class FasInspectionLine extends BaseEntity {

    @ApiModelProperty(value = "巡检路线id")
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    private Long id	;//巡检路线id

    @ApiModelProperty(value = "单位id")
    private Integer deptId	;//单位id

    @ApiModelProperty(value = "路线名")
    private String lineName	;//路线名

    @ApiModelProperty(value = "室内室外标志（室内路线：0，室外路线：1）")
    private Integer inoutFlag	;//室内室外标志（室内路线：0，室外路线：1）

    @ApiModelProperty(value = "巡检组编号")
    private Integer inspectionGroupId	;//巡检组编号

    @ApiModelProperty(value = "巡检计划id")
    private Integer inspectionPlanId	;//巡检计划id

    private Integer cooperationCompanyId;// 合作单位id

////////非表字段///////
    private List<Integer> facilityIds; //   路线绑定的设施id--新增时使用
    private List<FasFacilities> fasFacilitiesList; // 路线绑定的设施 (查询线路详情时可用)
    private String inspectionGroupName	;//巡检组名称
    private int facilityNum;
    private String companyName;// 公司名称


}
